/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.Transient;

/**
 *
 * @author Matthy & Jelle
 */
@Entity
@Table(name = "T_SOCIALMEDIABERICHT")
public class SocialMediaBericht {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Integer id;
  @ManyToOne
  @JoinColumn(name = "film_id")
  private Film film;
  @ManyToOne
  @JoinColumn(name = "complex_id")
  private Complex complex;
  private String tekst;
  @Temporal(javax.persistence.TemporalType.DATE)
  private Date datum;
  private String netwerk;
  @Transient
  private String filmNaam;
  @Transient
  private String complexNaam;

  public Integer getId() {
    return id;
  }

  public Film getFilm() {
    return film;
  }

  public Complex getComplex() {
    return complex;
  }

  public String getTekst() {
    return tekst;
  }

  public Date getDatum() {
    return datum;
  }

  public String getNetwerk() {
    return netwerk;
  }

  public String getFilmNaam() {
    return filmNaam;
  }

  public String getComplexNaam() {
    return complexNaam;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public void setFilm(Film film) {
    this.film = film;
  }

  public void setComplex(Complex complex) {
    this.complex = complex;
  }

  public void setTekst(String tekst) {
    this.tekst = tekst;
  }

  public void setDatum(Date datum) {
    this.datum = datum;
  }

  public void setNetwerk(String netwerk) {
    this.netwerk = netwerk;
  }

  public void setFilmNaam(String filmNaam) {
    this.filmNaam = filmNaam;
  }

  public void setComplexNaam(String complexNaam) {
    this.complexNaam = complexNaam;
  }
}
